package com.wowudi.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
    * 数据字典
    */
@ApiModel(value="com-wowudi-entity-Dict")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "sys_dict")
public class Dict implements Serializable {
    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value="id")
    private Long id;

    /**
     * 上级id
     */
    @TableField(value = "parent_id")
    @ApiModelProperty(value="上级id")
    private Long parentId;

    /**
     * 名称
     */
    @TableField(value = "name")
    @ApiModelProperty(value="名称")
    private String name;

    /**
     * 值
     */
    @TableField(value = "value")
    @ApiModelProperty(value="值")
    private String value;

    /**
     * 编码
     */
    @TableField(value = "dict_code")
    @ApiModelProperty(value="编码")
    private String dictCode;

    /**
     * 创建时间
     */
    @TableField(value = "create_time",fill = FieldFill.INSERT)
    @ApiModelProperty(value="创建时间")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time",fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value="更新时间")
    private Date updateTime;

    /**
     * 删除标记（0:不可用 1:可用）
     */
    @TableField(value = "is_deleted")
    @ApiModelProperty(value="删除标记（0:不可用 1:可用）")
    private Integer isDeleted;

    @TableField(value = "builder")
    @ApiModelProperty(value="创建者")
    private String builder;

    @TableField(exist = false)
    private List<Dict> children;

    private static final long serialVersionUID = 1L;
}
